package com.yonyougov.devops.cruxcisupport.notice;

import com.yonyougov.devops.fwc.api.dto.BaseResponseDto;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.SneakyThrows;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by ligson on 2017/8/11.
 */
@Api(value = "通知模块", tags = "通知模块")
@RestController
@RequestMapping("/api/v2/notice")
public class NoticeController {

    //<!--用户自定义代码开始-->

    @ApiModelProperty(value = "顶部提示", notes = "顶部提示")
    @PostMapping("/n/top")
    @SneakyThrows
    public BaseResponseDto add() {
        BaseResponseDto successInstance = BaseResponseDto.getSuccessInstance();
        //successInstance.put("notice","<span style=\"color: red\">【部署】->【映射端口】支持端口自动生成。</span> 分配规则依据端口分配原则:https://zw.wiki.yonyou.com/pages/viewpage.action?pageId=12780396");
        //successInstance.put("notice","<span style=\"color: red\">1. 支持一个用户多个公钥。2. 用户公钥更新会同步更新到所有服务器。3. 服务器全文搜索。4. 增加更新服务器状态按钮。5.在刷新服务器状态的时候如果发现有用户公钥在服务器上则该用户自动关联服务器。 </span>");
        successInstance.put("notice","<span style=\"color: red\">1. Harbor镜像管理。2. Harbor镜像操作历史。</span>");
        return successInstance;
    }
    //<!--用户自定义代码结束-->
}
